<template>
  <el-container class="mainContainer">
    <!-- 左侧内容 -->
    <el-aside class="an-qu sider" width="500px">
      <dianjinConfig  @update-welcome-config="handleUpdateWelcomeConfig"></dianjinConfig>

        <!-- 其他左侧模块... -->
    </el-aside>

    <!-- 右侧内容 -->
    <el-main class="an-qu">
       <dialogueTrial :welcomeConfig="welcomeConfig"></dialogueTrial>
    </el-main>
  </el-container>
</template>

<script>
import dialogueTrial from './dialogueTrial';
import dianjinConfig from './dianjinConfig';
import ragConfig from './ragConfig';
export default {
  name: "agentEdit",
  components: {
    dialogueTrial,
    dianjinConfig,
    ragConfig
  },
  data() {
    return {
      welcomeConfig:null
    };
  },
  methods: {
    handleUpdateWelcomeConfig(welcomeConfig) {
      // console.log("Received welcomeConfig from child:", welcomeConfig);
      // 在这里处理接收到的 welcomeConfig
      this.welcomeConfig = welcomeConfig;
    },
  },
};
</script>

<style scoped lang="scss">
.mainContainer {
  padding: 0;
  .an-qu {
    // overflow: initial;
    height: calc(100vh - 84px);
    margin-bottom: 0;
    &.sider{
      // height: calc(100vh - 84px);

    }
    //overflow: auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    padding: 0;
    .sider-icon {
      cursor: pointer;
    }
  }
}


</style>
 